package com.zxx.pattern.bridgePattern.bridge1;

/**
 * @author zxx on 2021/7/22
 */
public class TestBridge1 {
    public static void main(String[] args) {
        Shape circle = new ShapeCircle();
        Drawer pencil = new DrawerPencil();
        pencil.shape = circle;

        Person man = new PersonMan();
        man.drawer = pencil;
        man.draw();

        System.out.println();

        Person woman = new PersonWoman();
        woman.drawer = pencil;
        woman.draw();
    }
}
